package com.wanjia.admin.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wanjia.admin.server.pojo.Admin;
import com.wanjia.project.commons.dto.login.RespBean;

import javax.servlet.http.HttpServletRequest;

public interface AdminService extends IService<Admin> {

    /**
     * 登录之后返回Token
     * @param account
     * @param password
     * @param code
     * @param request
     * @return
     */
    RespBean login(String account, String password, String code, HttpServletRequest request);

    /**
     * 根据番号获取用户
     * @param account
     * @return
     */
    Admin getAdminByUserName(String account);
}
